
$(function () {
	//------------------------ajax list product store list-----------
	var curPage = 0;
	var loading = false;
	var pageContent;
	var url;
	$(".page-footer-no").click(function () {
		if(!loading){
			loading = true;
			curPage = $(this).attr("pgno")?$(this).attr("pgno"):0;
			pageContent = $("#content-page-"+curPage)[0];
			if (curPage >= 0 && !pageContent) { //&& 
				url = "ajaxgetproductstorelist.jsp" +window.location.search+ (window.location.search !== "" ? "&" : "?") + "method=ajax&pgno=" + curPage;			
				//$("#progressIndicator")[0].style.display = "block";
				$.ajax({type:"GET", dataType:"html", url:url, 
					success:function (html) {
						html = $.trim(html);
						if (html) $("#productstorelist-inner").append(html);
					}, 
					complete:function () {
						loading = false;
						//urchinTracker(window.location.pathname + (window.location.search != "" ? "" + window.location.search + "&" : "?") + "p=" + (curPage));
						//_qacct = "p-ebK_XdQH1HeLo";
						//quantserve();
						$("#progressIndicator")[0].style.display = "none";
						$("#content-page-footer-link").focus();
					}
				});
			}else{
				loading = false;
				$("#content-page-footer-link").focus();
			}
		}
		return false;
	});
		
		
});